#region Copyright (C) 2005-2010 Team MediaPortal

// Copyright (C) 2005-2010 Team MediaPortal
// http://www.team-mediaportal.com
// 
// MediaPortal is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 2 of the License, or
// (at your option) any later version.
// 
// MediaPortal is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
// 
// You should have received a copy of the GNU General Public License
// along with MediaPortal. If not, see <http://www.gnu.org/licenses/>.

#endregion

using System;

namespace MediaPortal.Player.PureAudio
{
  public struct FileType
  {
    public FileMainType FileMainType;
    public FileSubType FileSubType;

    public override string ToString()
    {
      return String.Format("{0}/{1}", FileMainType, FileSubType);
    }
  }

  public struct ReplayGainInfo
  {
    public float? AlbumGain;
    public float? AlbumPeak;
    public float? TrackGain;
    public float? TrackPeak;

    public override string ToString()
    {
      return String.Format("Track Gain={0}dB, Track Peak={1}, Album Gain={2}dB, Album Peak={3}",
        TrackGain,
        TrackPeak,
        AlbumGain,
        AlbumPeak);
    }
  }

  public struct LastErrorInfo
  {
    public ErrorCode ErrorCode;
    public String Message;

    public override string ToString()
    {
      return String.Format("{0} {1}", ErrorCode, Message);
    }
  }
}
